using System;
using FBGraph.Models;

namespace FBGraph.Controllers
{
    /// <summary>The groups this user is a member of. Requires the user_groups or friend_groups permission</summary>
    public partial class GroupsController : FBGraphController, IFBGraphConnectionController<Group>
    {
        /// <summary>Initializes an instance of <see cref="GroupsController" />.</summary>
        public GroupsController(IFBGraphContext context)
            : base(context)
        {
        }
        
        /// <summary>Gets the name of the connection the <see cref="GroupsController" /> handles requests for.</summary>
        String IFBGraphConnectionController<Group>.ConnectionName
        {
            get
            {
                return "groups";
            }
        }
    }
}